Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
C# Tutorial
1) 2D Graphics
2) ADO Net
3) Assembly
4) Attribute
5) Class
6) Data Type
7) Date Time
8) Delegate
9) Design Patterns
10) Development
11) Directory Services
12) File Directory Stream
13) Generic
14) GUI Windows Forms
15) Internationalization
16) Language Basics
17) LINQ
18) Network
19) Operator
20) Operator Overload
21) Preprocessing Directives
22) Reflection
23) Regular Expression
24) Security
25) Statement
26) String
27) Struct
28) Thread
29) Unsafe
30) WCF
31) Windows
32) Workflow
33) WPF
34) XML
35) XML LINQ
Thread
1) [MTAThread]
2) [STAThread]
3) A spin-lock
4) A sure-fire deadlock
5) Adding with Thread objects
6) An alternate way to start a thread
7) Async Callback Delegate
8) Async Delegate
9) Async Method
10) AsyncCallback and file viewer
11) Asynchronous Calls
12) Asynchronous Calls with Return Values
13) Asynchronous Invocation Of Delegates
14) Asynchronous Results Pattern Example
15) Asynchronous Writing, Asynchronous Reading
16) AutoResetEvent in action
17) Available workerIO threads
18) Block until a thread finishes, or timeout after 2 seconds
19) Call asynchronously
20) Canceling a queued task with RegisteredWaitHandle
21) Communicating Data to a Thread
22) Consumer Producer with Monitor
23) Context Manipulator
24) Coordinate two threads using Monitor
25) Create a thread of execution
26) Create multiple threads of execution
27) Current Thread HashCode
28) CurrentThread
29) Destroying Threads
30) Dining Philosopher
31) Display main threads name
32) Display main threads priority
33) Enum Threads For Pid
34) Foreground Thread Sleep
35) Get the main thread
36) Handling both time-outs and signals with a WaitOrTimerCallback delegate
37) How a Mutex is used to synchronize access to a protected resource
38) Increment Monitor
39) Interlocked
40) Interlocked Increment and Interlocked Decrement
41) Interrupting a Thread
42) Interrupting Threads
43) List threads for PID
44) Lock Demo
45) Max workerIO threads in a ThreadPool
46) Min workerIO threads in a ThreadPool
47) Monitor
48) Monitor Pool
49) Move thread to background
50) Multi Threaded Printing (Synchronizing Threads)
51) Name a Mutex
52) Own a Mutex
53) Pass delegate to deal with the IAsyncResult
54) Passing an argument to the thread method
55) Philosopher Example
56) Primary Thread statistcs
57) Producer and consumer
58) Producerconsumer
59) Putting a Thread to Sleep
60) QueueUserWorkItem and RegisterWaitForSingleObject
61) Queuing a task for execution by ThreadPool threads, with the RegisterWaitForSingleObject method
62) Reader Lock
63) Register Wait handle for auto reset event
64) Registering wait callbacks for events
65) Scheduling work to occur on the thread-pool
66) Set IsBackground to true
67) Set main threads name
68) Set the main threads priority
69) Shared Resource
70) Shared resource without lock
71) Simple Thread with ThreadStart
72) Sleep Interupt Threads
73) Starting a Method in a Separate Thread
74) Static Thread field
75) Stopping a thread
76) Sync Delegate
77) Synchronous Writing, Asynchronous Reading
78) Test foreground worker behaviors
79) The creation of threads
80) Thread IsAlive
81) Thread joins
82) Thread method with no parameter
83) Thread method with parameter
84) Thread Pool Example
85) Thread priorities
86) Thread Sleep
87) Thread Static field
88) Thread Stats
89) Threading with Mutex
90) Thread-local-storage
91) ThreadPool Demo
92) Threads Joining
93) ThreadState property
94) Thread-static local-storage
95) Throw exception between Monitor Enter and Montor Exit
96) Use a manual event object
97) Use a Mutex to control a shared resource against two current threads
98) Use a Semaphore
99) Use Abort(object)
100) Use anonymous delegate as the worker method to create Thread
101) Use async job to compute
102) Use AsyncCallback
103) Use Interlocked operations
104) Use IsAlive to wait for threads to end
105) Use Join() to wait for threads to end
106) Use LocalDataStoreSlot
107) Use lock and Monitor to coordinate Producer and Consumer
108) Use lock to synchronize access to an object
109) Use Monitor to control more than one Threads
110) Use Monitors
111) Use of volatile
112) Use ResetAbort()
113) Use the Interlocked object
114) Use the lock object
115) Use the Mutex object
116) Use the QueueUserWorkItem method to queue a task and supply the data for the task
117) Use the system thread pool
118) Use thread-local storage
119) Use ThreadPool
120) Use ThreadPool to implement a hello server
121) Use Wait() and Pulse() to create a ticking clock
122) User Thread
123) Using A Monitor
124) Using a reader-writer lock to protect a complex business type
125) Using Lock
126) Using synchronized methods
127) Using the thread pool and no arguments
128) Using the thread pool and providing an argument
129) Using ThreadPool Instead of Instantiating Threads Explicitly
130) Waiting with WaitHandle
131) Writer Lock